package cn.kgc.ssm.web.mapper;

import cn.kgc.ssm.web.entity.User;
import cn.kgc.ssm.web.form.LoginForm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/7/26
 * @description
 */
public interface UserMapper {

    User selectUser(LoginForm loginForm);

    List<User> userPage(@Param("username") String username, @Param("age") Integer age);

    void addUser(User user);

    User selectByUsername(String username);

    void updateUser(User user);

    void delete(@Param("ids") Integer[] ids);

    void resetPwd(@Param("id") Integer id,@Param("pwd") String md5Pwd);

}
